

<%@ page import="ecitys.gcs.ResponsavelSefip" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'responsavelSefip.label', default: 'ResponsavelSefip')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${responsavelSefipInstance}">
            <div class="errors">
                <g:renderErrors bean="${responsavelSefipInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${responsavelSefipInstance?.id}" />
                <g:hiddenField name="version" value="${responsavelSefipInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cpfCnpjResponsavelSefip"><g:message code="responsavelSefip.cpfCnpjResponsavelSefip.label" default="Cpf Cnpj Responsavel Sefip" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'cpfCnpjResponsavelSefip', 'errors')}">
                                    <g:textField name="cpfCnpjResponsavelSefip" maxlength="11" value="${responsavelSefipInstance?.cpfCnpjResponsavelSefip}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tipoDeInscricao"><g:message code="responsavelSefip.tipoDeInscricao.label" default="Tipo De Inscricao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'tipoDeInscricao', 'errors')}">
                                    <g:textField name="tipoDeInscricao" value="${fieldValue(bean: responsavelSefipInstance, field: 'tipoDeInscricao')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nomeDoResponsavelSefip"><g:message code="responsavelSefip.nomeDoResponsavelSefip.label" default="Nome Do Responsavel Sefip" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'nomeDoResponsavelSefip', 'errors')}">
                                    <g:textField name="nomeDoResponsavelSefip" maxlength="30" value="${responsavelSefipInstance?.nomeDoResponsavelSefip}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nomeContatoSefip"><g:message code="responsavelSefip.nomeContatoSefip.label" default="Nome Contato Sefip" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'nomeContatoSefip', 'errors')}">
                                    <g:textField name="nomeContatoSefip" maxlength="20" value="${responsavelSefipInstance?.nomeContatoSefip}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="logradouro"><g:message code="responsavelSefip.logradouro.label" default="Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'logradouro', 'errors')}">
                                    <g:textField name="logradouro" maxlength="50" value="${responsavelSefipInstance?.logradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="numeroLogradouro"><g:message code="responsavelSefip.numeroLogradouro.label" default="Numero Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'numeroLogradouro', 'errors')}">
                                    <g:textField name="numeroLogradouro" maxlength="5" value="${responsavelSefipInstance?.numeroLogradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bairro"><g:message code="responsavelSefip.bairro.label" default="Bairro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'bairro', 'errors')}">
                                    <g:textField name="bairro" maxlength="20" value="${responsavelSefipInstance?.bairro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cep"><g:message code="responsavelSefip.cep.label" default="Cep" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'cep', 'errors')}">
                                    <g:textField name="cep" maxlength="8" value="${responsavelSefipInstance?.cep}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="codigoDDD"><g:message code="responsavelSefip.codigoDDD.label" default="Codigo DDD" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'codigoDDD', 'errors')}">
                                    <g:textField name="codigoDDD" maxlength="2" value="${responsavelSefipInstance?.codigoDDD}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="numeroTelefone"><g:message code="responsavelSefip.numeroTelefone.label" default="Numero Telefone" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'numeroTelefone', 'errors')}">
                                    <g:textField name="numeroTelefone" maxlength="8" value="${responsavelSefipInstance?.numeroTelefone}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="numeroFax"><g:message code="responsavelSefip.numeroFax.label" default="Numero Fax" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'numeroFax', 'errors')}">
                                    <g:textField name="numeroFax" maxlength="8" value="${responsavelSefipInstance?.numeroFax}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="enderecoSite"><g:message code="responsavelSefip.enderecoSite.label" default="Endereco Site" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'enderecoSite', 'errors')}">
                                    <g:textField name="enderecoSite" value="${responsavelSefipInstance?.enderecoSite}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="uf"><g:message code="responsavelSefip.uf.label" default="Uf" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'uf', 'errors')}">
                                    <g:select name="uf.id" from="${ecitys.commons.Uf.list()}" optionKey="id" value="${responsavelSefipInstance?.uf?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cidade"><g:message code="responsavelSefip.cidade.label" default="Cidade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: responsavelSefipInstance, field: 'cidade', 'errors')}">
                                    <g:select name="cidade.id" from="${ecitys.commons.Municipio.list()}" optionKey="id" value="${responsavelSefipInstance?.cidade?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
